package cn.tedu.peipei.content.service;

import cn.tedu.peipei.content.pojo.dto.ContentDto;
import cn.tedu.peipei.content.pojo.dto.ContentIndexQueryDto;
import cn.tedu.peipei.content.pojo.dto.ContentManagementQueryDto;
import cn.tedu.peipei.content.pojo.vo.*;

import java.util.List;

public interface ContentService {
    void addNew(ContentDto contentDTO);

    List<ContentManagementVO> listForManagement(ContentManagementQueryDto contentManagementQueryDTO);

    void deleteById(Long id);

    ContentUpdateVO getDetailForUpdate(Long id);

    List<ContentIndexVO> listForIndex(ContentIndexQueryDto contentIndexQueryDTO);

    ContentDetailVO getDetailById(Long id);

    List<ContentOtherVO> listForOtherByUserId(Long id);

    List<ContentOtherVO> listForHot();

    List<ContentIndexVO> listByType(Integer type);

    List<ContentIndexVO> searchByWd(String wd);

    List<ContentAdminVO> listForAdmin();
}
